@import "_reset.scss";
@import "head.scss";
@import "foot.scss";

%w {
  width: 1220px;
  margin: 0 auto;
}
body {
  background: #fff;
}
img {
  vertical-align: middle;
}

.pc_cart {
  @extend %w;
  min-height: 500px;
}

.cart {
  width: 996px;
  margin: 0 auto;
  background-color: #fff;

  .list-header {
    margin-top: 4px;
    height: 50px;
    line-height: 50px;
    background: #e4393c;
    font-size: 14px;
  }

  .col {
    float: left;
  }

  .col-check input {
    margin-left: 25px;
    vertical-align: middle；;
  }

  .col-img {
    width: 80px;
    height: 50px;
  }
  .col-detail {
    width: 250px;
    text-align: center;
  }
  .col-price {
    width: 100px;
    text-align: center;
  }
  .col-count {
    width: 150px;
    text-align: center;
  }
  .col-subtotal {
    width: 150px;
    text-align: center;
  }
  .col-operate {
    width: 105px;
    text-align: center;
  }
  .col-check {
    width: 100px;
  }

  .list-body {
    // margin-bottom: 10px;

    .list-item {
      height: 90px;
      line-height: 90px;
      font-size: 14px;
      border-bottom: 1px solid #d5d5d5;
      overflow: hidden;
    }

    .col-img img {
      width: 80px;
      height: 80px;
      vertical-align: middle;
    }

    .countBox {
      width: 148px;
      height: 38px;
      line-height: 38px;
      text-align: center;
      display: inline-block;
      vertical-align: middle;
      border: 1px solid #d5d5d5;

      .reduce {
        width: 38px;
        font-size: 16px;
        height: 38px;
      }
      .reduce:hover {
        color: red;
      }
      .add:hover {
        color: red;
      }
      .countSpan {
        width: 70px;
        height: 38px;
      }

      .add {
        font-size: 16px;
        font-weight: bolder;
        width: 38px;
        height: 38px;
      }
    }
    .countBox > * {
      float: left;
    }
  }

  .list-footer {
    background-color: white;
    width: 996px;
    height: 50px;
    line-height: 50px;
    position: sticky;
    bottom: 0;
    font-size: 13px;
    color: #626262;
    margin-top: 20px;

    .col-continue {
      width: 120px;
      text-align: center;
    }

    .col-pitch {
      width: 120px;
      text-align: center;
      margin-right: 10px;
    }

    .col-center {
      width: 450px;
      height: 50px;
      padding-left: 16px;
      padding-right: 13px;
      box-sizing: border-box;

      .numTips {
        float: left;
      }

      .priceTips {
        font-size: 16px;
        float: right;
      }

      .selectedTotal {
        font-size: 18px;
      }
    }

    .col-total {
      width: 200px;
      text-align: center;
      background: #e4393c;
      font-size: 18px;
      margin-left: 40px;
      a {
        color: #fff;
      }
    }
  }
}
